package com.bw.jetpacktest.live;

import androidx.lifecycle.MutableLiveData;

public class PostTest {

    private MutableLiveData<String>liveData=new MutableLiveData<>();

    public MutableLiveData<String> getLiveData() {
        return liveData;
    }

    public void setValue(final String str) {
        new Thread(){
            @Override
            public void run() {
                super.run();
                liveData.postValue(str);
            }
        }.start();
    }
}
